package com.sq.partner.manager.mybatis.model;

import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.util.Date;
import java.util.List;

import com.sq.partner.manager.util.DateUtil;

/**
 * 激活卡出库费用model
 * SQ
 *
 */
public class CommamtFee {
    private String commamtId;  //出库ID
    private String cardDefineId;  //卡定义ID
    private Integer handleTotal;   //总张数 
    private String agentMan;    //代理人 
    private String agentNo;    //代理人编码
    private String operatorNo;   //业务员 
    private String operatorName;   //业务员名称  
    private String agentProtocolNo;  //代理人协议号 
    private BigDecimal agentPremRate;   //费率
    private BigDecimal modalPremAmt;   //每单固定保费
    private BigDecimal agentFee;  //每单手续费
    private BigDecimal totPremAMt;   //总计实际保费
    private BigDecimal totAgentFee; //总计手续费
    private String agentPremRateStr;   //费率
    private String modalPremAmtStr;   //每单固定保费
    private String agentFeeStr;  //每单手续费
    private String totPremAMtStr;   //总计实际保费
    private String totAgentFeeStr; //总计手续费
    private String flag;    //代理人与业务员标示
    private String isPay;    //是否缴费
    private String preSellNo;  //预收单号
    private String operator;   //出库人
    private String operatorDeptNo;  //出库机构
    private Date operatorDate;  //出库日期
    private String payMan;  //收付人
    private Date payDate;  //收付日期
    private String cbsnsTyp; //渠道大类
    private String cchaCls;  //渠道性质
    private String cchaLevel;  //新的业务来源
    private String status;  //状态
    private String isPreFee;  //是否预收保费
    private String cserviceCode;  //服务代码
    private String cserviceName;  //服务名称
    private String cchannleCode;  //渠道名称 
    private String cchannleType;  //渠道类型
    private String bsnsType;      //原业务来源
    private String teamCode;  //团队代码
    private String teamName;   //团队名称
    private BigDecimal comAddtaxPrem;  //保单增值税保费
    private BigDecimal comNotaxPrem;  //保单不含税保费
    private BigDecimal comModelAddtaxPrem;  //每份固定增值税保费
    private BigDecimal comMOdelNotaxPrem;  //每份固定不含税保费
    private String operatorDateStr;
    private String name;
    private String printDate;
    private List<OutboundCardPrint> cardNoList;
    private String pricelessType;
    private String backPayFlag;//回传收付状态
    // 集中收款平台对接 2019/03/12 zhouxx start
    private String isNewpay;//是否集中收款平台支付
    public String getIsNewpay() {
        return isNewpay;
    }
    public void setIsNewpay(String isNewpay) {
        this.isNewpay = isNewpay;
    }
    // 集中收款平台对接 2019/03/12 zhouxx end
    public String getCommamtId() {
        return commamtId;
    }
    public void setCommamtId(String commamtId) {
        this.commamtId = commamtId;
    }
    public String getCardDefineId() {
        return cardDefineId;
    }
    public void setCardDefineId(String cardDefineId) {
        this.cardDefineId = cardDefineId;
    }
    public Integer getHandleTotal() {
        return handleTotal;
    }
    public void setHandleTotal(Integer handleTotal) {
        this.handleTotal = handleTotal;
    }
    public String getAgentMan() {
        return agentMan;
    }
    public void setAgentMan(String agentMan) {
        this.agentMan = agentMan;
    }
    public String getOperatorNo() {
        return operatorNo;
    }
    public void setOperatorNo(String operatorNo) {
        this.operatorNo = operatorNo;
    }
    public String getAgentProtocolNo() {
        return agentProtocolNo;
    }
    public void setAgentProtocolNo(String agentProtocolNo) {
        this.agentProtocolNo = agentProtocolNo;
    }
    public BigDecimal getAgentPremRate() {
        return agentPremRate;
    }
    DecimalFormat decimalFormat = new DecimalFormat("#.00");
    public void setAgentPremRate(BigDecimal agenntPremRate) {
        this.agentPremRate = agenntPremRate;
        if (agentPremRate != null) {
            this.agentPremRate = new BigDecimal(decimalFormat.format(agentPremRate));
            this.agentPremRateStr = this.agentPremRate.toString();
        } else {
            this.agentPremRateStr = "";
        }
    }
    public BigDecimal getModalPremAmt() {
        return modalPremAmt;
    }
    public void setModalPremAmt(BigDecimal modalPremAmt) {
        this.modalPremAmt = modalPremAmt;
        if (modalPremAmt != null) {
            this.modalPremAmt = new BigDecimal(decimalFormat.format(modalPremAmt));
            this.modalPremAmtStr = this.modalPremAmt.toString();
        } else {
            this.modalPremAmtStr = "";
        }
    }
    public BigDecimal getAgentFee() {
        return agentFee;
    }
    public void setAgentFee(BigDecimal agentFee) {
        this.agentFee = agentFee;
        if (agentFee != null) {
            this.agentFee = new BigDecimal(decimalFormat.format(agentFee));
            this.agentFeeStr = this.agentFee.toString();
        } else {
            this.agentFeeStr = "";
        }
    }
    public BigDecimal getTotPremAMt() {
        return totPremAMt;
    }
    public void setTotPremAMt(BigDecimal totPremAMt) {
        this.totPremAMt = totPremAMt;
        if (totPremAMt != null) {
            this.totPremAMt = new BigDecimal(decimalFormat.format(totPremAMt));
            this.totPremAMtStr = this.totPremAMt.toString();
        } else {
            this.totPremAMtStr = "";
        }
    }
    public BigDecimal getTotAgentFee() {
        return totAgentFee;
    }
    public void setTotAgentFee(BigDecimal totAgentFee) {
        this.totAgentFee = totAgentFee;
        if (totAgentFee != null) {
            this.totAgentFee = new BigDecimal(decimalFormat.format(totAgentFee));
            this.totAgentFeeStr = this.totAgentFee.toString();
        } else {
            this.totAgentFeeStr = "";
        }
    }
    public String getFlag() {
        return flag;
    }
    public void setFlag(String flag) {
        this.flag = flag;
    }
    public String getIsPay() {
        return isPay;
    }
    public void setIsPay(String isPay) {
        this.isPay = isPay;
    }
    public String getPreSellNo() {
        return preSellNo;
    }
    public void setPreSellNo(String preSellNo) {
        this.preSellNo = preSellNo;
    }
    public String getOperator() {
        return operator;
    }
    public void setOperator(String operator) {
        this.operator = operator;
    }
    public String getOperatorDeptNo() {
        return operatorDeptNo;
    }
    public void setOperatorDeptNo(String operatorDeptNo) {
        this.operatorDeptNo = operatorDeptNo;
    }
    public String getOperatorDateStr() {
        return operatorDateStr;
    }
    public Date getOperatorDate() {
        return operatorDate;
    }
    public void setOperatorDate(Date operatorDate) throws Exception {
        this.operatorDate = operatorDate;
        this.operatorDateStr=DateUtil.format(operatorDate,"yyyy-MM-dd");
    }
    public String getPayMan() {
        return payMan;
    }
    public void setPayMan(String payMan) {
        this.payMan = payMan;
    }
    public Date getPayDate() {
        return payDate;
    }
    public void setPayDate(Date payDate) {
        this.payDate = payDate;
    }
    public String getCbsnsTyp() {
        return cbsnsTyp;
    }
    public void setCbsnsTyp(String cbsnsTyp) {
        this.cbsnsTyp = cbsnsTyp;
    }
    public String getCchaCls() {
        return cchaCls;
    }
    public void setCchaCls(String cchaCls) {
        this.cchaCls = cchaCls;
    }
    public String getCchaLevel() {
        return cchaLevel;
    }
    public void setCchaLevel(String cchaLevel) {
        this.cchaLevel = cchaLevel;
    }
    public String getStatus() {
        return status;
    }
    public void setStatus(String status) {
        this.status = status;
    }
    public String getIsPreFee() {
        return isPreFee;
    }
    public void setIsPreFee(String isPreFee) {
        this.isPreFee = isPreFee;
    }
    public String getCserviceCode() {
        return cserviceCode;
    }
    public void setCserviceCode(String cserviceCode) {
        this.cserviceCode = cserviceCode;
    }
    public String getCchannleCode() {
        return cchannleCode;
    }
    public void setCchannleCode(String cchannleCode) {
        this.cchannleCode = cchannleCode;
    }
    public String getCchannleType() {
        return cchannleType;
    }
    public void setCchannleType(String cchannleType) {
        this.cchannleType = cchannleType;
    }
    public String getTeamCode() {
        return teamCode;
    }
    public void setTeamCode(String teamCode) {
        this.teamCode = teamCode;
    }
    public String getTeamName() {
        return teamName;
    }
    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }
    public BigDecimal getComAddtaxPrem() {
        return comAddtaxPrem;
    }
    public void setComAddtaxPrem(BigDecimal comAddtaxPrem) {
        this.comAddtaxPrem = comAddtaxPrem;
    }
    public BigDecimal getComNotaxPrem() {
        return comNotaxPrem;
    }
    public void setComNotaxPrem(BigDecimal comNotaxPrem) {
        this.comNotaxPrem = comNotaxPrem;
    }
    public BigDecimal getComModelAddtaxPrem() {
        return comModelAddtaxPrem;
    }
    public void setComModelAddtaxPrem(BigDecimal comModelAddtaxPrem) {
        this.comModelAddtaxPrem = comModelAddtaxPrem;
    }
    public BigDecimal getComMOdelNotaxPrem() {
        return comMOdelNotaxPrem;
    }
    public void setComMOdelNotaxPrem(BigDecimal comMOdelNotaxPrem) {
        this.comMOdelNotaxPrem = comMOdelNotaxPrem;
    }
    public String getAgentNo() {
        return agentNo;
    }
    public void setAgentNo(String agentNo) {
        this.agentNo = agentNo;
    }
    public String getOperatorName() {
        return operatorName;
    }
    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
    }
    public String getCserviceName() {
        return cserviceName;
    }
    public void setCserviceName(String cserviceName) {
        this.cserviceName = cserviceName;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getPrintDate() {
        return printDate;
    }
    public void setPrintDate(String printDate) {
        this.printDate = printDate;
    }
    public List<OutboundCardPrint> getCardNoList() {
        return cardNoList;
    }
    public void setCardNoList(List<OutboundCardPrint> cardNoList) {
        this.cardNoList = cardNoList;
    }
    public String getPricelessType() {
        return pricelessType;
    }
    public void setPricelessType(String pricelessType) {
        this.pricelessType = pricelessType;
    }
    public String getBsnsType() {
        return bsnsType;
    }
    public void setBsnsType(String bsnsType) {
        this.bsnsType = bsnsType;
    }
    public String getAgentPremRateStr() {
        return agentPremRateStr;
    }
    public String getModalPremAmtStr() {
        return modalPremAmtStr;
    }
    public String getAgentFeeStr() {
        return agentFeeStr;
    }
    public String getTotPremAMtStr() {
        return totPremAMtStr;
    }
    public String getTotAgentFeeStr() {
        return totAgentFeeStr;
    }
    public String getBackPayFlag() {
        return backPayFlag;
    }
    public void setBackPayFlag(String backPayFlag) {
        this.backPayFlag = backPayFlag;
    }
}
